package cn.com.dhcc.ddi.task.vo;

import java.util.Date;

import cn.com.dhcc.app.core.annotation.SiColumn;
import cn.com.dhcc.app.core.annotation.SiTable;
import cn.com.dhcc.app.core.base.ModuleFeatureBean;
/**
 * 一次性任务发送频率信息
 * @日期：2014-11-18下午4:46:52
 * @作者：张洪涛
 * @版权所有：东华软件
 * @版本：1.0
 */
@SiTable(name = "t_ddi_task_ontime")
public class TaskOntime extends ModuleFeatureBean{
	@SiColumn(isId = true)
	private String id;
	@SiColumn(name = "task_id")
	private String taskId;//所属发送任务
	@SiColumn(name = "execute_type")
	private String executeType;// 执行类型 1立即执行2手动执行2定时发送
	@SiColumn(name = "EXECUTE_TIME")
	private Date executeTime;// 定时发送时间
	private Date mtime;// 最后修改时间
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTaskId() {
		return taskId;
	}
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	public String getExecuteType() {
		return executeType;
	}
	public void setExecuteType(String executeType) {
		this.executeType = executeType;
	}
	public Date getMtime() {
		return mtime;
	}
	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public Date getExecuteTime() {
		return executeTime;
	}
	public void setExecuteTime(Date executeTime) {
		this.executeTime = executeTime;
	}

	public static enum EXECUTE_TYPE {
		// 执行类型 1立即执行2手动执行2定时发送
		IMME("1","立即执行"),
		MANUAL  ("2","手动执行"),
		TIMING ("3","自动执行");
		private String code;
		private String name;
		
		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		private EXECUTE_TYPE(String code,String name){
			this.code = code;
			this.name = name;
		}
	}

	@Override
	public String toString() {
		return "StrucSTaskOntime [id=" + id + ", taskId=" + taskId
				+ ", executeType=" + executeType + ", executeTime="
				+ executeTime + ", mtime=" + mtime + "]";
	}
	
}
